package com.qf.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

// bean,vo(view Object),entity,domain,projo
// 实体类主要正对的是数据库
@Data
//@TableName("t_order")
public class Order  implements Serializable {

    @TableId(type = IdType.INPUT) // 订单id需要自己设置
    private String id;
    private Integer uid;
    private Integer payType;

//    1:未支付，2：已支付，3：已取消，4：已超时，5：已发货
    private Integer status;
    private BigDecimal totalPrice;
    private String name;
    private String phone;
    private String address;
    private Date createTime;

    @TableField(exist = false)
    private List<OrderDetail> orderDetails;

}
